package misc;

public class XMLElement {
	private String name;
	private String value;
	private XMLAttribute[] xmlAttributes;
	private XMLElement[] xmlElements;
	
	public XMLElement(String name, String value) {
		setName(name);
		setValue(value);
	}
	
	public XMLElement(String name, XMLAttribute[] xmlAttributes, String value) {
		setName(name);
		setXmlAttributes(xmlAttributes);
		setValue(value);
	}
	
	public XMLElement(String name, XMLElement[] xmlElements){
		setName(name);
		setXmlElements(xmlElements);
	}
	
	public XMLElement(String name, XMLAttribute[] xmlAttributes, XMLElement[] xmlElements) {
		setName(name);
		setXmlAttributes(xmlAttributes);
		setXmlElements(xmlElements);
	}
	
	public String getName(){
		return name;
	}
	
	private void setName(String name){
		this.name = name;
	}
	
	public String getValue(){
		return value;
	}
	
	private void setValue(String value){
		this.value = value;
	}
	
	public XMLAttribute[] getXmlAttributes(){
		return xmlAttributes;
	}
	
	private void setXmlAttributes(XMLAttribute[] xmlAttributes){
		this.xmlAttributes = xmlAttributes;
	}
	
	public XMLElement[] getXmlElements(){
		return xmlElements;
	}
	
	private void setXmlElements(XMLElement[] xmlElements){
		this.xmlElements = xmlElements;
	}
}